<template>
    <v-md-preview :text="text" height="100%" width="100%"></v-md-preview>
</template>
  
<script setup lang="ts">
import { ref, onMounted,reactive, computed, defineProps, defineEmits, watch} from 'vue'
import privacy from '../../assets/privacy/privacy.md?raw'
import protocal from '../../assets/privacy/protocal.md?raw'
import {useRouter, useRoute} from 'vue-router';
const route = useRoute();

const props = defineProps({
    path: String,
})

const text = ref();

const path = props.path || route.query.path;
console.log("path", path);
if(path=="privacy"){
    text.value = privacy;
}else if(path=="protocal"){
    text.value = protocal;
}

onMounted(()=>{
    
})


  
</script>